title = "文章详情"
url = "/blog/post/:slug"
is_hidden = 0
robot_index = "index"
robot_follow = "follow"

[blogPost]
slug = "{{ :slug }}"
categoryPage = "blog/category"
==
<?php
function onEnd()
{
    // Optional - set the page title to the post title
    if (isset($this->post))
        $this->page->title = $this->post->title;
}
?>
==
<!DOCTYPE html>
<html lang="en">
{% partial "meta" %}

<body id="home" class="homepage">

<header id="header">
{% partial "nav-blog" %}

<script>
document.title = "{{ post.title }}";
</script>

<style>  
    body {
        background-color: #f5f6f7;
    }
    
    .col-center-block {  
        float: none;  
        display: block;  
        margin-left: auto;  
        margin-right: auto;  
    }  
    
    .article {
        background-color: #fff;
        padding: 20px;
    }
    .article-top {
        padding: 0 29px;
        color: #2c3033;
        font-size: 24px;
        font-weight: 700;
        line-height: 38px;
    }
    .article-content {
        margin-bottom: 30px;
        color: #454545;
        padding: 20px 30px 0;
        font-weight: 400;
    }
    .article-content img{
        max-width: 100%;
    }
    .article-right{
        font-size: 14px;
        color: #788087;
        clear: both;
        overflow: hidden;
        padding: 10px 20px 30px 30px;
        background-color: #fff;
        margin-top: -10px;
    }
    
    .article-bar{
        padding: 0 29px 8px;
        color: #888;
        border-bottom: 1px solid #e5e5e5;
        font-size: 14px;
        line-height: 38px;
        margin-top: 5px;
    }
    .time {
        color: #bbb;
        
    }
    .original {
        border: 1px solid #e4ebf4;
        padding: 2px 6px;
        font-size: 14px;
        color: #78909c;
        margin-right: 20px;
    }
    .original {
        color: #bbb;
        font-size: 14px;
    }
    
    .category-note{
        margin-left: 20px;
    }
    .category{
        color: #4093c6;
    }
</style>
</header><!--/header-->


<div class="col-xs-8 col-center-block">
    <div class="col-xs-8">
        <div class="article">
            <h1 class="article-top">{{ post.title }}</h1>
            <div class="article-bar">
                <div class="article-tag">
                    <span class="original">原创</span>
                    <span class="time">{{ post.published_at|date('Y年m月d日') }}</span>
                    <span class="category-note">分类：</span>
                    <span class="category">
                        {% for category in post.categories %}
                            <a href="{{ category.url }}">{{ category.name }}</a>{% if not loop.last %}, {% endif %}
                        {% endfor %}
                    </span>
                    
                </div>
            </div>
            <div class="article-content">
                {% component 'blogPost' %}
            </div>
            <div class="article-right">
                <span>版权声明：本文为“中医思维十”原创文章，未经博主允许不得转载</span>
            </div>
            
        </div>
    </div>
    <div class="col-xs-4">
    </div>
    
</div>